package hello_controller

import (
	"fmt"
	"golang.org/x/net/context"
	"grpcDemo/go_server/proto/simple"
)

type HelloWorldController struct{}

func (h *HelloWorldController) SayHello(ctx context.Context, in *simple.HelloRequest) (*simple.HelloReply, error) {
	return &simple.HelloReply{Message: fmt.Sprintf("%s %s", "hello,", in.Name)}, nil
}
